package com.eshealthy.service;

import com.eshealthy.entity.*;

import java.io.IOException;
import java.util.List;

public interface DoctorService {
    //注册
    void register(Doctor doctor);
    Doctor login(Doctor doctor);

    void registerArea(Integer area);
    List<Cases> findCases(Integer page, Integer rows) throws IOException;
    List<Scheduling> findTime(String aid,String str);
    Integer findTotalsSchedule(Integer id);
    List<Patient> findSchedule(Integer id,Integer page,Integer rows);
    int[] week();
    void updateStatus(Integer id);
    Patient findOne(Integer id);
    String pname(Integer id);
    Doctor check(Integer id);
    void addCase(Cases cases)throws IOException;

    List<Drug> searchDrug(Integer page,Integer rows,String key) throws IOException;

    long Totals(Integer id,String key) throws IOException;

    List<MedicalDevice> searchDevice(Integer page, Integer rows, String word) throws IOException;

    List<Library> searchLibrary(Integer page, Integer rows, String word) throws IOException;

    long findTotalsCase() throws IOException;

    String findPid(Integer id);
}
